// 导入vue和vuex
import Vue from "vue"
import Vuex from "vuex"
import modulecart from "./cart.js"
import moduleuser from "./user.js"
// 将vuex安装为vue的插件
Vue.use(Vuex)
// 创建store实例对象
const store = new Vuex.Store({
  //挂载store模块
  modules: {
    m_cart: modulecart,
    m_user: moduleuser
  },
})
// 导出
export default store
